package com.wzx.user.service;

import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wzx.common.exception.LeadNewsException;
import com.wzx.user.pojo.Wallet;
import com.wzx.user.vo.NotesVo;

import java.math.BigDecimal;

/**
 * @author wzx
 * @version 1.0
 * @date 2023/3/1 - 22:36
 * @description 标题
 */
public interface WalletService extends IService<Wallet> {
    double queryBalance(Integer userId);

    void addBalance(NotesVo notesVo);

    String cashWithdrawal(NotesVo notesVo) throws LeadNewsException, AlipayApiException;

    void updatePwd(NotesVo notesVo) throws LeadNewsException;

    void forgetPwd(NotesVo notesVo) throws LeadNewsException;

    Boolean judgePwd(NotesVo notesVo) throws LeadNewsException;
}
